package com.ktwlsoft.archivemanage.domain.dao.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import lombok.Getter;
import lombok.Setter;
import javax.validation.constraints.Size;

import java.io.Serializable;
import java.util.Date;

 /**
  * imgs--图片
  *
  * @author zhuhe on 2019-10-24 14:19:41
  * @version 1.0
  */
@ApiModel("imgs--图片-Imgs")
@Getter
@Setter
public class Imgs implements Serializable{
	
    /**主键**/
    @ApiModelProperty("主键")
    private Long id;

    /**业务外键**/
    @ApiModelProperty("业务外键")
    private Long businessId;

    /**业务类型**/
    @ApiModelProperty("业务类型")
    @Size(max = 50, message = "业务类型参数超长")
    private String businessType;

    /**相对地址**/
    @ApiModelProperty("相对地址")
    @Size(max = 300, message = "相对地址参数超长")
    private String url;

    /**名称**/
    @ApiModelProperty("名称")
    @Size(max = 50, message = "名称参数超长")
    private String fileName;

    /**后缀**/
    @ApiModelProperty("后缀")
    @Size(max = 20, message = "后缀参数超长")
    private String suffix;

    /**大小**/
    @ApiModelProperty("大小")
    private Long size;

    /**创建人**/
    @ApiModelProperty("创建人")
    @Size(max = 30, message = "创建人参数超长")
    private String creator;

    /**创建人id**/
    @ApiModelProperty("创建人id")
    private Long creatorId;

    /**创建时间**/
    @ApiModelProperty("创建时间")
    private Date createdAt;

    /**更新时间**/
    @ApiModelProperty("更新时间")
    private Date updateAt;

     /**类型:1.新增,2.删除**/
     @ApiModelProperty("类型:1.新增,2.删除")
     private transient Integer type;

     @Override
     public String toString() {
         return "Imgs{" +
                 "id=" + id +
                 ", businessId=" + businessId +
                 ", businessType='" + businessType + '\'' +
                 ", url='" + url + '\'' +
                 ", fileName='" + fileName + '\'' +
                 ", suffix='" + suffix + '\'' +
                 ", size=" + size +
                 ", creator='" + creator + '\'' +
                 ", creatorId=" + creatorId +
                 ", createdAt=" + createdAt +
                 ", updateAt=" + updateAt +
                 '}';
     }
 }
